#pragma warning(disable:4996)
#include<stdio.h>
#include<stdlib.h>
int main()
{
	char tmp;
	FILE* pf = fopen("text.txt", "w");
	if (!pf){
		perror("pf");
		return -1;
	}
	for (tmp = 'a'; tmp <= 'z'; tmp++) {
		printf(" %d\n", ftell(pf));
		fputc(tmp, pf);
	}	
	printf(" %d\n", ftell(pf));
	fclose(pf);
	
	return 0;
}